#define  _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdbool.h>

bool IsPalindrome(int x)
{
	if (x < 0 || x % 10 == 0 && x > 0)
	{
		return false;
	}
	int revertedNumber = 0;
	while (x > revertedNumber)
	{
		revertedNumber = revertedNumber * 10 + x % 10;
		x /= 10;
	}
	return x == revertedNumber || x == revertedNumber / 10;
}

int main()
{
	int n = 0;
	scanf("%d", &n);
	bool ret = IsPalindrome(n);
	if (ret)
	{
		printf("IsPalindrome\n");
	}
	else
	{
		printf("Not Palindrome\n");
	}
	return 0;
}